package com.steven.io;

import java.io.IOException;
import java.io.InputStream;

/*
 * 读取键盘录入
 * 
 * 字符流：
 * FileRead
 * FileWrite
 * bufferedRead
 * bufferedWrite
 * 字节流
 * fileinputstream
 * fileoutputstream
 * 
 * 读取键盘数据，并显示
 * 
 */

public class ReadIn {
	public static void main(String[] args) {
		InputStream in = System.in;
		try {

			StringBuilder sb = new StringBuilder();

			while (true) {
				int ch = in.read();
				if (ch == 13) {
					continue;

				}
				if (ch == 10) {
					String x = sb.toString();
					
					if ("over".equalsIgnoreCase(x))  
					
						
						break;
						
						System.out.println(x.toUpperCase());
						sb.delete(0, sb.length());
					 

				}else{
				sb.append((char) ch );
				}
			 

			}

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
